package com.linxianqin.springbootVue.domain.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;



@Data
@ApiModel(value="SysLogininforDTO对象", description="系统访问记录")
public class SysLogininforDTO implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "访问ID")
      @JsonSerialize(using= ToStringSerializer.class)
      private Long infoId;

      @ApiModelProperty(value = "用户账号")
      private String userName;

      @ApiModelProperty(value = "登录IP地址")
      private String ipaddr;

      @ApiModelProperty(value = "登录地点")
      private String loginLocation;

      @ApiModelProperty(value = "浏览器类型")
      private String browser;

      @ApiModelProperty(value = "操作系统")
      private String os;

      @ApiModelProperty(value = "登录状态（0成功 1失败）")
      private String status;

      @ApiModelProperty(value = "提示消息")
      private String msg;

      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      @ApiModelProperty(value = "访问时间")
      private Date loginTime;

      @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
      private String deleted;

      @ApiModelProperty(value = "请求参数")
      private Map<String, Object> params;
}
